import Vue from 'vue'
import App from './App'
import router from './router'
import iView from 'iview';
import 'iview/dist/styles/iview.css';
import store from '@/store/Store';
import  VueQuillEditor from 'vue-quill-editor';
import 'quill/dist/quill.core.css';
import 'quill/dist/quill.snow.css';
import 'quill/dist/quill.bubble.css';
import config from '@/config/config';
import md5 from 'js-md5';

Vue.use(VueQuillEditor);
Vue.use(iView);
Vue.config.productionTip = false
Vue.prototype.global = config;
Vue.prototype.Md5 = md5;

//用户登录状态处理
const token = JSON.parse(sessionStorage.getItem('token'));
store.commit('saveInfo', token);

new Vue({
  el: '#app',
  store,//引入vuex仓库
  router,
  components: { App },
  template: '<App/>'
})
